Skip to content

internal/cmd: print correct config file on parse failure #749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 26, 2020

Conversation

kevinburke1
Copy link
Contributor

No description provided.

@@ -63,18 +63,19 @@ func Generate(e Env, dir string, stderr io.Writer) (map[string]string, error) {
}

if !yamlMissing && !jsonMissing {
fmt.Fprintln(stderr, "error parsing sqlc.json: both files present")
fmt.Fprintln(stderr, "error: both sqlc.json and sqlc.yaml files present")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be fmt.Fprintf

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one doesn't have anything interpolated... ?

The one below this one should be Fprintf, I made a mistake there, but not this one

@kevinburke1
Copy link
Contributor Author

Done

@kyleconroy kyleconroy merged commit a2a4403 into sqlc-dev:master Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants